package repository

type ChatRepositoryer interface {
	SendRequest(requestBody []byte) ([]byte, error)
}

type Repository struct {
	ChatApi ChatRepositoryer
	Redis   *RepoRedis
}

func NewRepository(apiKey, linkApi, redisHost, redisPort, proxyURL, proxyUser, proxyPassword string) *Repository {
	return &Repository{
		ChatApi: NewChatAPI(apiKey, linkApi, proxyURL, proxyUser, proxyPassword),
		Redis:   initRedis(redisHost, redisPort),
	}
}
